package com.tql.test_14;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/*
* 可重入锁概念
* synchronized 锁获取外面的锁自动获取里面的锁
* lock 锁要配对出现（上锁，就要解锁）
* */
public class LOckTest {
    public static void main(String[] args) {
        Lock lock=new ReentrantLock();
    }
}
